<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$ngay=array('01','02','03','04','05','06','07','08','09','10','11','12','13','14','15',
'16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31');
$thang=array('01','02','03','04','05','06','07','08','09','10','11','12');
$gioitinh=array('Male','Female');
$nam=array('1910','1911','1912','1913','1914','1915','1916','1917','1918','1919',
            '1920','1921','1922','1923','1924','1925','1926','1927','1928','1929',
            '1930','1931','1932','1933','1934','1935','1936','1937','1938','1939',
            '1940','1941','1942','1943','1944','1945','1946','1947','1948','1949',
            '1950','1951','1952','1953','1954','1955','1956','1957','1958','1959',
           '1960','1961','1962','1963','1964','1965','1966','1967','1968','1969',
           '1970','1971','1972','1973','1974','1975','1976','1977','1978','1979',
           '1980','1981','1982','1983','1984','1985','1986','1987','1988','1989',
           '1990','1991','1992','1993','1994','1995','1996','1997','1998','1999',
           '2000','2001','2002','2003','2004','2005','2006','2007','2008','2009',
           '2010','2011','2012','2013','2014','2015','2016','2017','2018','2019');
$songuoiphuthuoc=array(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20);
$tinhtrang=array('Single','Marriaged');
?>
<form action="<?php echo base_url()?>staff/editStaff" method="POST" name="formEditStaff" onsubmit="return checkFormEditStaff();">
    <table id="box-table-a" cellspacing="1" align="right" width="900px" >
        <tr>
            <td colspan="6" class="bar">Information of Staff:<strong><?=$Name?></strong></td>
        </tr>
        <tr>
            <td class="row10" align="left">Staff ID</td>
            <td class="row12" align="left"><input type="text" name="txtStaffID" value="<?=$Staff_ID?>" class="form"></td>
            <td class="row10" align="left">Full Name</td>
            <td class="row12" align="left"><input type="text" name="txtFullName" value="<?=$FullName?>" class="form"></td>
            
        </tr>
        <tr>
            <td class="row10" align="left">First Name</td>
            <td class="row12" align="left"><input type="text" name="txtFirstName" value="<?=$FirstName?>" class="form"></td>
            <td class="row10" align="left">Last Name</td>
            <td class="row12" align="left"><input type="text" name="txtLastName" value="<?=$LastName?>" class="form"></td>
            
        </tr>
        <tr>
            <td class="row10" align="left">DOB</td>
            <td class="row12" align="left">
                <select name="txtDay">
                <?php
                                   foreach($ngay as $item){
                                     if($item == $Day)
                                     echo "<option selected>$item</option>";
                                     else echo "<option>$item</option>";
                                   }
                      ?>
            </select>
            <select name="txtMonth">
                <?php
                                   foreach($thang as $item){
                                     if($item == $Month)
                                     echo "<option selected>$item</option>";
                                     else echo "<option>$item</option>";
                                   }
                      ?>
            </select>
            <select name="txtYear">
                <?php
                                   foreach($nam as $item){
                                     if($item == $Year)
                                     echo "<option selected>$item</option>";
                                     else echo "<option>$item</option>";
                                   }
                      ?>
            </select>
            </td>
            <td class="row10" align="left">POB</td>
            <td class="row12" align="left"><input type="text" name="txtPOB" value="<?=$POB?>" class="form"></td>
        </tr>
        <tr>
            <td class="row10" align="left">Maristal Status</td>
            <td class="row12" align="left">
                <select name="txtMaristalStatus">
                      <?php
                                   foreach($tinhtrang as $item){
                                     if($item == $MaristalStatus)
                                     echo "<option selected>$item</option>";
                                     else echo "<option>$item</option>";
                                   }
                      ?>
                    </select>
            </td>
            <td class="row10" align="left">Gender</td>
            <td class="row12" align="left">
                <select name="txtGender">
                      <?php
                                   foreach($gioitinh as $item){
                                     if($item == $Gender)
                                     echo "<option selected>$item</option>";
                                     else echo "<option>$item</option>";
                                   }
                      ?>
                    </select>
            </td>
            
        </tr>
        <tr>
            <td class="row10" align="left">Personal Tax Code</td>
            <td class="row12" align="left"><input type="text" name="txtPersonalTaxCode" value="<?=$PersonalTaxCode?>" class="form"></td>
            <td class="row10" align="left">Number Of Dependent</td>
            <td class="row12" align="left">
            <select name="txtNumberOfDependent">
                <?php
                                   foreach($songuoiphuthuoc as $item){
                                     if($item == $NumberOfDependent)
                                     echo "<option selected>$item</option>";
                                     else echo "<option>$item</option>";
                                   }
                      ?>
            </select>
            </td>
           
        </tr>
        <tr>
             <td class="row10" align="left">ID Number/Passport Number</td>
            <td class="row12" align="left"><input type="text" name="txtID_Number" value="<?=$ID_Number?>" class="form"></td>
            <td class="row10" align="left">DOI</td>
            <td class="row12" align="left">
                 <select name="txtDayIssue">
                <?php
                                   foreach($ngay as $item){
                                     if($item == $DayIssue)
                                     echo "<option selected>$item</option>";
                                     else echo "<option>$item</option>";
                                   }
                      ?>
            </select>
            <select name="txtMonthIssue">
                <?php
                                   foreach($thang as $item){
                                     if($item == $MonthIssue)
                                     echo "<option selected>$item</option>";
                                     else echo "<option>$item</option>";
                                   }
                      ?>
            </select>
            <select name="txtYearIssue">
                <?php
                                   foreach($nam as $item){
                                     if($item == $YearIssue)
                                     echo "<option selected>$item</option>";
                                     else echo "<option>$item</option>";
                                   }
                      ?>
            </select>
            </td>
        </tr>
        <tr>
            <td class="row10" align="left">POI</td>
            <td class="row12" align="left"><input type="text" name="txtPOI" value="<?=$POI?>" class="form"></td>
            <td class="row10" align="left">Home Phone</td>
            <td class="row12" align="left"><input type="text" name="txtHomePhone" value="<?=$HomePhone?>" class="form"></td>
            
        </tr>
        <tr>
            <td class="row10" align="left">Cell Phone</td>
            <td class="row12" align="left"><input type="text" name="txtCellPhone" value="<?=$CellPhone?>" class="form"></td>
            <td class="row10" align="left">Personal Email 1</td>
            <td class="row12" align="left"><input type="text" name="txtPersonalEmail1" value="<?=$PersonalEmail1?>" class="form"></td>
            
            
        </tr>
        <tr>
            <td class="row10" align="left">Personal Email 2</td>
            <td class="row12" align="left"><input type="text" name="txtPersonalEmail2" value="<?=$PersonalEmail2?>" class="form"></td>
            <td class="row10" align="left">Company Email</td>
            <td class="row12" align="left"><input type="text" name="txtCompanyEmail" value="<?=$CompanyEmail?>" class="form"></td>
        </tr>
        <tr>
            <td class="row10" align="left">PA Address</td>
            <td class="row12" align="left"><input type="text" name="txtPA_NSWD" value="<?=$PA_NSWD?>" class="form"></td>
            <td class="row10" align="left">PA City</td>
            <td class="row12" align="left"><input type="text" name="txtPA_City" value="<?=$PA_City?>" class="form"></td>
            
           
        </tr>
        <tr>
            <td class="row10" align="left">PA Country</td>
            <td class="row12" align="left"><input type="text" name="txtPA_Country" value="<?=$PA_Country?>" class="form"></td>
            <td class="row10" align="left">CA Address</td>
            <td class="row12" align="left"><input type="text" name="txtCA_NSWD" value="<?=$CA_NSWD?>" class="form"></td>
            
            
        </tr>
        <tr>
            
            <td class="row10" align="left">CA City</td>
            <td class="row12" align="left"><input type="text" name="txtCA_City" value="<?=$CA_City?>" class="form"></td>
            <td class="row10" align="left">CA Country</td>
            <td class="row12" align="left"><input type="text" name="txtCA_Country" value="<?=$CA_Country?>" class="form"></td>
        </tr>
        <tr>
            
            <td class="row10" align="left">Vehicle No</td>
            <td class="row12" align="left"><input type="text" name="txtVehicleNo" value="<?=$VehicleNo?>" class="form"></td>
             <td class="row10" align="left">Vehicle Type</td>
            <td class="row12" align="left"><input type="text" name="txtVehicleType" value="<?=$VehicleType?>" class="form"></td>
            
        </tr>
        <tr>
           
            <td class="row10" align="left">Vehicle Colour</td>
            <td class="row12" align="left"><input type="text" name="txtVehicleColour" value="<?=$VehicleColour?>" class="form"></td>
            <td>
            	
            </td>
            <td></td>
        </tr>
      
        <tr>
        <td class="row10" align="center" colspan="2"><input type="submit" name="Edit" id="submit" value="Save"></td>
        <td class="row12" align="center" colspan="2"><input type="reset" name="Reset" id="submit" value="Reset"></td>
    </tr>
    <tr>
        <td class="row1" align="center" colspan="4">
            <?php $titleback = '<img src ="'.base_url().'templates/images/icons/back.jpg" width=40 height=25 title="Back"/>';
            $back = anchor("staff/index",$titleback);
            echo $back;?>
        </td>
    </tr>
    </table>
</form>
